#ifndef  UTILS_H_
#define UTILS_H_

#include <stdlib.h>
#include <stdio.h>

extern void Error(const char* text);
extern void *MyAlloc(size_t size);
extern void *MyRealloc(void* ptr,size_t size);
extern FILE* MyFopen(const char* filename, const char* options);
extern char MyFgetc(FILE* fd);
extern int MyFgeti(FILE* fd);

#define Error(text)\
{\
	fprintf(stderr, "\nError in function %s line %u file %s : \n%s \n\n",__FUNCTION__,__LINE__,__FILE__,text);\
	exit(EXIT_FAILURE);\
}\

#endif
